OpenPlant PID Help

Project Reuse

Project Reuse is basically making a copy of an existing project for the basis of use in a new project. A specific workflow is required for Project Reuse and is detailed below.

Overview

When opening a drawing in OpenPlant PID , if a name difference is detected, a Moved/Renamed/Copied dialog appears. Since Project Reuse has a set of copied PID drawings, the Copied option must be selected. This makes 2 changes to all component, including document, instances:
  • Creates a new GUID
  • Sets the "IsTagReserved" flag to false

The creation of new GUIDs in a per drawing case causes issue, in which browsed components would result in different GUIDs in each drawing. Meaning they would be considered different components.

OpenPlant PID CONNECT Edition linked page connectors, their attached pipe runs, and their pipelines are treated like browsed components within PlantSight. This means a single instance exists with relationships to multiple PID documents.

The creation of new GUIDS in a per drawing case will cause an issue in which browsed components would result in different GUIDS in each drawing. Meaning they would be considered different components.

OpenPlant PID CONNECT Edition linked page connectors, their attached pipe runs, and their pipelines are treated like browsed components within PlantSight. This means a single instance exists with relationships to multiple PID documents.

Required WorkFlow

Determining a subset of a project's drawings, which only have linked page connectors or browsed components, can be difficult. If incorrectly done, problems could ensue. Therefore, the project drawings should be prepped for reuse at one time by one person. The following are the pre-reuse steps.

Setup a Copied Project (Not ProjectWise Enabled)

The best way to copy a WorkSet is using the Create Custom WorkSet option in OpenPlant Project Administrator. This allows you to select the project you want to copy as a template. When the new Workset is created it will essentially create a new WorkSet and include all of the old WorkSet configurations and drawings.

Refer to the OpenPlant Project Administrator help for details on how to Create a Custom WorkSet.

Make sure all of the PID drawings are stored in a single file. A default PID directory is automatically created when you create a WorkSet. If you have PID drawings stored in a different directory is would be best to place them here.

Setup a Copied Project (ProjectWise Enabled)

For WorkSets which are ProjectWise enabled, you can still use the Project Administrator to Create a Custom WorkSet. You will use the same procedure as above but using the ProjectWise enabled WorkSet as a template. This will copy the WorkSet configuration locally. You will need to check out all of the WorkSet PID drawings to the local directory so they can all be updated at the same time.

Once the WorkSet has been created and the files copied you can use the following procedure to update the new drawings and replace the existing GUIDs with new ones.

Processing the WorkSet for Reuse

  1. Launch OpenPlant PID and create a new drawing named tempPreReuse.
    Note: Make sure the drawing is created in the same directory all of the other PID drawings are stored in.
  2. Key in the following:

    pid plantproject reuse

    The following dialog displays with two options:
    • Report browsed components - Analyzes all of the drawings for browsed components and generates a report of them. Browse components are components which are present on multiple drawings but have only one instance store on PlantSight. A good example is page connectors.
    • Update components - Updates all component GUIDs in all drawings in the working directory. Any browsed component will have the same GUID in all drawings the component is placed in.
  3. Select an option and click OK to process the drawings.
    Upon completion the following dialog will display:
  4. Press OK and exit OpenPlant PID .

Sync Drawings with PlantSight

The following procedure details how to sync all of the drawings with PlantSight using a batch processing command.
Note: This assumes that the new WorkSet created has been associated with a connected project and provisioned to a PlantSight imodel.
  1. Launch OpenPlant PID and open any drawing in the WorkSet.
    Note: Depending on number of releases between original project and copied project, there might be internal upgrade required.
  2. Keyin the following:

    pid logmode batch

    • Upgrade occurs before the drawing is completely opened. This means commands in a batch file are run after the upgrade. Therefore, setting batch mode must be done before running batch process. The default for the "Do you want to upgrade?" dialog is Yes.
  3. Create a batch text file, ex. batchReuse.txt, with the following two lines. This ensures each drawing will be upgraded.

    pid plantproject syncdirection dgntodb

    pid plantproject sync

    Note: If required when the drawing is opened, synchronized to PlantSight.
  4. In the ribbon search field search for Batch:
  5. Select Batch Process.
  6. Click the Browse icon next to the Command File and browse to the location of the text file created above.
  7. Select Edit > Add Files and select the copied drawings.
  8. Select File > Process.
  9. Click Process.
  10. Click Done when the batch process is complete.
  11. Keyin the following:
    pid logmode interactive
    Note: Any further work in the active session will display dialogs if needed.
  12. Batch processing, involving Sync, disables the option to Use Differencing Dialog. You would need to enable, to use in the future.